package org.tongdao.yulong.value_spel.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2020年09月28日 2:07 下午
 */
@Component
public class Red {
  @Value("${red.name}")
  private String name;
  @Value("${red.order}")
  private Integer order;

  @Override
  public String toString() {
    return "Red{" +
        "name='" + name + '\'' +
        ", order=" + order +
        '}';
  }
}
